package com.yiyuan.app.entity.annotation;


import com.yiyuan.app.entity.enums.TaskTypeEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 防止重复提交
 *
 * @Author: zhangxilin
 * @Date: 2022/12/14
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface Task {

    /**
     * 任务类型，每日任务/长期任务
     *
     * @return
     */
    TaskTypeEnum taskType() default TaskTypeEnum.daily_task;
}
